package StuManagerSystem.bean;

public class Teacher extends Person {
	private String course;//课程

	public Teacher() {
		super();
	}

	public Teacher(String number, String username, String password, 
			String sex, Integer age, Integer roleId, String course) {
		super(number, username, password, sex, age, roleId);
		this.course = course;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	@Override
	public String toString() {
		return "Teacher [getNumber=" + getNumber() + ", getUsername=" + getUsername()
				+ ", getPassword=" + getPassword() + ", getSex=" + getSex() + ", getAge=" + getAge()
				+ ", getRoleId=" + getRoleId() + ", course=" + this.course + "]";
	}
	
}
